package com.sc.admin.mapper;

import java.util.List;
import com.sc.admin.common.MysqlQuery;
import com.sc.admin.pojo.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);
    
    List<Role> selectRoles(MysqlQuery query);
    
    int selectCount();
    
    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

	Role selectRoleByName(String name);

	List<Role> selectAll();
}